$(document).ready(function () {

    // Fix IE z-index

    /*var zIndexNumber = 1000;
    $('div').each(function() {
    $(this).css('zIndex', zIndexNumber);
    zIndexNumber -= 10;
    });*/

    // Navigation tabs with smooth transitions:

    $('#main-nav > li > ul').hide(); // Hide all subnavigation
    $('#main-nav > li > a.current').parent().children("ul").show(); // Show current subnavigation	

    $('#main-nav > li > a[href="#"]').click( // Click!
			function () {
			    $(this).parent().siblings().children("a").removeClass('current'); // Remove .current class from all tabs
			    $(this).addClass('current'); // Add class .current
			    $(this).parent().siblings().children("ul").fadeOut(150); // Hide all subnavigation
			    $(this).parent().children("ul").fadeIn(150); // Show current subnavigation
			    return false;
			}
		);



});